package com.cssnj.portal.domain.admin;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Objects;

public class GlGwJsEntityPK implements Serializable {
    private String gwId;
    private String jsId;

    @Column(name = "GW_ID")
    @Id
    public String getGwId() {
        return gwId;
    }

    public void setGwId(String gwId) {
        this.gwId = gwId;
    }

    @Column(name = "JS_ID")
    @Id
    public String getJsId() {
        return jsId;
    }

    public void setJsId(String jsId) {
        this.jsId = jsId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GlGwJsEntityPK that = (GlGwJsEntityPK) o;
        return Objects.equals(gwId, that.gwId) &&
                Objects.equals(jsId, that.jsId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(gwId, jsId);
    }
}
